package com.ChenYaRou.www.po;

import java.time.LocalDateTime;

/**
 * @ClassName Ticket
 * @Description TODO
 * @Author 86183
 * @Date 2022/4/29 19:53
 * @Version 1.0
 **/
public class Ticket {
    private Integer id;
    private Integer ownerId;
    private Integer shopId;
    private String state;
    private LocalDateTime deadline;
    private Float discount;

    public Ticket() {
    }

    public Ticket(Integer ownerId, Integer shopId, String state, LocalDateTime deadline, Float discount) {
        this.ownerId = ownerId;
        this.shopId = shopId;
        this.state = state;
        this.deadline = deadline;
        this.discount = discount;
    }

    @Override
    public String toString() {
        return "Ticket{" +
                "id=" + id +
                ", ownerId=" + ownerId +
                ", shopId=" + shopId +
                ", state='" + state + '\'' +
                ", deadline=" + deadline +
                ", discount=" + discount +
                '}';
    }

    public Integer getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Integer ownerId) {
        this.ownerId = ownerId;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public LocalDateTime getDeadline() {
        return deadline;
    }

    public void setDeadline(LocalDateTime deadline) {
        this.deadline = deadline;
    }

    public Float getDiscount() {
        return discount;
    }

    public void setDiscount(Float discount) {
        this.discount = discount;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
